|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.HierarchyNode
j3deditor.bin.hierarchy.J3DeAppearance
public class J3DeAppearance
Contains and manages an instance of
javax.media.j3d.Appearance.
Appearance| Constructor Summary | |
|---|---|
J3DeAppearance(javax.media.j3d.Appearance appearance)
Creates an instance of J3DeAppearance
with the given Appearance object
and sets capabilities for it. |
|
| Method Summary | |
|---|---|
javax.media.j3d.Appearance |
getAppearance()
Returns the Appearance object. |
HierarchyNode |
getChild(int index)
Returns the child at the specified index. |
int |
getIndexOfChild(HierarchyNode child)
Returns the index of specified child. |
int |
getNumberOfChildren()
Returns the number of children. |
J3DeTexture |
getTexture()
Returns texture. |
boolean |
hasMaterial()
Tests if the Material component of this node exists. |
boolean |
hasTexture()
Tests if this appearance node has texture component. |
boolean |
hasTextureAttributes()
Tests if this appearance node has texture attributes component. |
protected void |
removeChild(HierarchyNode child)
Removes the specified child. |
void |
setMaterial()
Applies new material component to this appearance node if none exists. |
void |
setMaterial(javax.media.j3d.Material material)
Applies the given material component to this appearance node. |
void |
setTexture(javax.media.j3d.Texture texture)
Applies the given texture component to this appearance node. |
void |
setTextureAttributes()
Applies new texture attributes component to this appearance node. |
void |
setTextureAttributes(javax.media.j3d.TextureAttributes ta)
Applies the given texture attributes component to this appearance node. |
| Methods inherited from class j3deditor.bin.hierarchy.HierarchyNode |
|---|
clone, equals, getIndex, getParent, getParent, getType, hasNamedChild, setName, setParent, toString, updateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public J3DeAppearance(javax.media.j3d.Appearance appearance)
J3DeAppearance
with the given Appearance object
and sets capabilities for it.
Appearance.ALLOW_COLORING_ATTRIBUTES_READAppearance.ALLOW_COLORING_ATTRIBUTES_WRITEAppearance.ALLOW_LINE_ATTRIBUTES_READAppearance.ALLOW_LINE_ATTRIBUTES_WRITEAppearance.ALLOW_MATERIAL_READAppearance.ALLOW_MATERIAL_WRITEAppearance.ALLOW_POINT_ATTRIBUTES_READAppearance.ALLOW_POINT_ATTRIBUTES_WRITEAppearance.ALLOW_POLYGON_ATTRIBUTES_READAppearance.ALLOW_POLYGON_ATTRIBUTES_WRITEAppearance.ALLOW_RENDERING_ATTRIBUTES_READAppearance.ALLOW_RENDERING_ATTRIBUTES_WRITEAppearance.ALLOW_TEXGEN_READAppearance.ALLOW_TEXGEN_WRITEAppearance.ALLOW_TEXTURE_ATTRIBUTES_READAppearance.ALLOW_TEXTURE_ATTRIBUTES_WRITEAppearance.ALLOW_TEXTURE_READAppearance.ALLOW_TEXTURE_UNIT_STATE_READAppearance.ALLOW_TEXTURE_UNIT_STATE_WRITEAppearance.ALLOW_TEXTURE_WRITEAppearance.ALLOW_TRANSPARENCY_ATTRIBUTES_READAppearance.ALLOW_TRANSPARENCY_ATTRIBUTES_WRITE
appearance - an instance of AppearanceSceneGraphObject.setCapability(int capability)| Method Detail |
|---|
public HierarchyNode getChild(int index)
getChild in class HierarchyNodeindex - index of child
public int getNumberOfChildren()
getNumberOfChildren in class HierarchyNodepublic int getIndexOfChild(HierarchyNode child)
getIndexOfChild in class HierarchyNodechild - child node which index will be returned
public boolean hasMaterial()
Material component of this node exists.
true if the material component of
this appearance node exists,
otherwise falsepublic void setMaterial()
public void setMaterial(javax.media.j3d.Material material)
material - new materialpublic boolean hasTexture()
true if the texture component of
this appearance node exists,
otherwise falsepublic J3DeTexture getTexture()
public void setTexture(javax.media.j3d.Texture texture)
texture - new texturepublic boolean hasTextureAttributes()
true if the texture attributes
component of this appearance node exists,
otherwise falsepublic void setTextureAttributes()
public void setTextureAttributes(javax.media.j3d.TextureAttributes ta)
ta - new texture attributes componentpublic javax.media.j3d.Appearance getAppearance()
Appearance object.
Appearance objectprotected void removeChild(HierarchyNode child)
removeChild in class HierarchyNodechild - child that will be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||